package cn.com.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiArticle;
import cn.com.api.mapper.ApiArticleMapper;
import cn.com.api.service.ApiArticleService;

@Service
public class ApiArticleServiceImpl implements ApiArticleService {

	@Autowired
	private ApiArticleMapper apiArticleMapper;

	@Override
	public List<Map<String, Object>> sear() {
		return apiArticleMapper.sear();
	}

	@Override
	public List<Map<String, Object>> searAll() {
		return apiArticleMapper.searAll();   
	}

	@Override
	public boolean add(ApiArticle apiArticle) {
		return apiArticleMapper.add(apiArticle);
	}

	@Override
	public boolean update(ApiArticle apiArticle) {
		return apiArticleMapper.update(apiArticle);
	}

	@Override
	public Map<String, Object> searById(String id) {
		return apiArticleMapper.searById(id);
	}

	@Override
	public boolean delete(String id) {
		return apiArticleMapper.delete(id);
	}

}
